package com.design.pattern.structuremode.decorator;


/**
 * 结构型模式-装饰模式
 * @author yll
 * @version 1.0.0
 * @date 2024/03/18 16：25
 * @desc 装饰角色实例，向组件添加职责
 * */
public class ConcreteDecorator extends Decorator {

    @Override
    public void run() {
        openMeans();
        super.run();
    }

    private void openMeans(){
        System.out.println("打开资料！");
    }
}
